package com.tensquare.user.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wz
 * @company 公司
 * @create 2020-02-10 16:28
 */
@Configuration
@MapperScan("com.tensquare.user.dao")
public class MyBatisPlusConfig {
    @Bean
    public PaginationInterceptor create(){
        return new PaginationInterceptor();
    }
}
